/**
  ******************************************************************************
  * @file    FanParamDefault.c
  * @author  Silan - MC Team
  * @version 1.0.0
  * @date    2017/07/19
  * @brief   FAN Driver Parameter Default Value Set.
  * @details None
  * @note    None
  ******************************************************************************
  * @attention
  * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
  * AS A RESULT, SILAN MICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
  * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
  * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  ******************************************************************************
  * Change History
  * -# 2017/07/19 | v1.0.0 | Wangjianlong | Creat file.
  *
  *
  *
  *
  *
  *
  *
  *
  *
  ******************************************************************************
  */

/********************************************************************************
 * Include section
 *******************************************************************************/
#include "FanDrvParam.h"
#include "FanParamDefault.h"


/*******************************************************************************
 * Global function for the current project
 ******************************************************************************/

/**
  * @brief  Set default value of struct FAN_DRV_PARAM_s.
  */
void FanDrvParamDefault(struct FAN_DRV_PARAM_s *ptr){
  ptr->u16PwmFreq                       =     DEFAULT_FAN_PwmFreq;
  ptr->fPwmDtUS                         =     DEFAULT_FAN_PwmDtUS;
  ptr->u8PolePairs                      =     DEFAULT_FAN_PolePairs;
  ptr->u8Rs                             =     DEFAULT_FAN_Rs;
  ptr->u16Ld                            =     DEFAULT_FAN_Ld;
  ptr->u16Lq                            =     DEFAULT_FAN_Lq;
  ptr->fJ                               =     DEFAULT_FAN_J;
  ptr->u8Ke                             =     DEFAULT_FAN_Ke;
  ptr->fBaseFreqMec                     =     DEFAULT_FAN_BaseFreqMec;
  ptr->u16BaseVolt                      =     DEFAULT_FAN_BaseVolt;
  ptr->fBaseCurr                        =     DEFAULT_FAN_BaseCurr;
  ptr->u8OverModeEn                     =     DEFAULT_FAN_OverModeEn;
  ptr->u8SingleShuntEn                  =     DEFAULT_FAN_SingleShuntEn;
  ptr->fDampedCoeff4SpdPI               =     DEFAULT_FAN_DampedCoeff4SpdPI;
  ptr->fBandWidth4SpdPI                 =     DEFAULT_FAN_BandWidth4SpdPI;
  ptr->fDampedCoeff4CurrPI              =     DEFAULT_FAN_DampedCoeff4CurrPI;
  ptr->u16BandWidth4CurrPI              =     DEFAULT_FAN_BandWidth4CurrPI;
  ptr->fDampedCoeff4PllPI               =     DEFAULT_FAN_DampedCoeff4PllPI;
  ptr->fBandWidth4PllPI                 =     DEFAULT_FAN_BandWidth4PllPI;
  ptr->u8FilterCoeff4Spd                =     DEFAULT_FAN_FilterCoeff4Spd;
  ptr->fFreeSpdHighPU                   =     DEFAULT_FAN_FreeSpdHighPU;
  ptr->fFreeSpdMidPU                    =     DEFAULT_FAN_FreeSpdMidPU;
  ptr->fFreeSpdLowPU                    =     DEFAULT_FAN_FreeSpdLowPU;
  ptr->fStartupSpd0PU                   =     DEFAULT_FAN_StartupSpd0PU;
  ptr->fStartupSpd1PU                   =     DEFAULT_FAN_StartupSpd1PU;
  ptr->fStartupCurr                     =     DEFAULT_FAN_StartupCurr;
  ptr->fStartupRmp0                     =     DEFAULT_FAN_StartupRmp0;
  ptr->fStartupRmp1                     =     DEFAULT_FAN_StartupRmp1;
  ptr->fAccRmp                          =     DEFAULT_FAN_AccRmp;
  ptr->fDecRmp                          =     DEFAULT_FAN_DecRmp;
  ptr->fMaxSpeedPU                      =     DEFAULT_FAN_MaxSpeedPU;
  ptr->fMinSpeedPU                      =     DEFAULT_FAN_MinSpeedPU;
  ptr->fOCVal4Rms                       =     DEFAULT_FAN_OCVal4Rms;
  ptr->fOCVal4Peak                      =     DEFAULT_FAN_OCVal4Peak;
  ptr->u8OPVal4Rms                      =     DEFAULT_FAN_OPVal4Rms;
  ptr->fMaxIsVal                        =     DEFAULT_FAN_MaxIsVal;
  ptr->fSmpDly                          =     DEFAULT_FAN_SmpDly;
  ptr->fMinPulse                        =     DEFAULT_FAN_MinPulse;
  ptr->fOpenLoopSpd                     =     DEFAULT_FAN_OpenLoopSpd;
}

/*---------------------------------- End of the file ---------------------------------*/

